Hello! I had a question regarding access policies and how to correctly set them up for the use case that I need. I set an access policy for all resources that my application needs access to:
"resource": [
{
"resourceType": "Task"
},
{
"resourceType": "Encounter"
},
{
"resourceType": "Patient"
},
{
"resourceType": "Practitioner"
},
{
"resourceType": "ServiceRequest"
},
{
"resourceType": "Organization"
},
{
"resourceType": "Location"
},
{
"resourceType": "Consent"
},
{
"resourceType": "Communication"
}
]
But I'm unable to perform the following search successfully:
https://api.medplum.com/fhir/R4/Task?_include=Task:based-on&_include=Task:owner&_include=Task:patient&_include=Task:requester&encounter=dc5f63a1-74c1-4d15-8583-247c27414e7f
I just get a bundle with the above link. I've tried adjusting the access policy a few different ways but haven't been able to get any of the requested resources back from that search. Even simplifying it to just look for the Task with that encounter ID does not return anything other than the link.
Would anyone be able to take a look and let me know what I should modify, either with the access policy or the search itself?